package io.renren.modules.jxgk.service.impl;

import io.renren.modules.jxgk.dao.TeacherCourseContentDao;
import io.renren.modules.jxgk.entity.TeacherCourseContentEntity;
import io.renren.modules.jxgk.service.TeacherCourseContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TeacherCourseContentServiceImpl implements TeacherCourseContentService{
    @Autowired
    TeacherCourseContentDao teacherCourseContentDao;
   public List<TeacherCourseContentEntity> queryList(Map<String, Object> map,String course_teacher_id){
       return  teacherCourseContentDao.queryCourseList(map,course_teacher_id);
   }
    public int queryTotal(Map<String, Object> map, String course_teacher_id){
       return teacherCourseContentDao.queryCourseTotal(map,course_teacher_id);
    }
    public void update(TeacherCourseContentEntity cse){
       teacherCourseContentDao.update(cse);
    }
    public TeacherCourseContentEntity queryObject(String class_course_id){
       return teacherCourseContentDao.queryCourseObject(class_course_id);
    }
    public double queryProcedure(String course_teacher_id, String courseName){
       return teacherCourseContentDao.queryProcedure(course_teacher_id,courseName);
    }
    public int updateAll(TeacherCourseContentEntity teacherCourseContentEntity){
       return  teacherCourseContentDao.updateAll(teacherCourseContentEntity);
    }
    public  List<String>  queryCourseName(String course_teacher_id){
        return teacherCourseContentDao.queryCourseName(course_teacher_id);
    }
}
